#include <iostream>
#include <unordered_map>
#include <string>

using namespace std;

class Solution {
        private: 

            unordered_map<int ,string> IntStringHash;
            int cout_of_url = 0;

        public:

            // Encodes a URL to a shortened URL.
            string encode(string longUrl) 
            {
                IntStringHash[cout_of_url] = longUrl;
                return "http://tinyurl.com/" + to_string(cout_of_url++);
            }

            // Decodes a shortened URL to its original URL.
            string decode(string shortUrl) 
            {                
                return IntStringHash[stoi(shortUrl.substr(19, shortUrl.length() - 19))];
            }
    };

int main()
{
    Solution A;
    A.decode;
}

// Your Solution object will be instantiated and called as such:
// Solution solution;
// solution.decode(solution.encode(url));